package com.ticket.sass.common.entity.tenant.enums

import com.baomidou.mybatisplus.annotation.IEnum

enum class CouponActivateType(private val value: Short, val tips: String) : IEnum<Short> {
    SET_DATE(1, "指定日期范围"),
    AFTER_DATE(2, "领取后指定");

    override fun getValue(): Short {
        return value
    }

    companion object {
        fun valueOf(v: Short) = values().find { it.value == v } ?: error("未匹配到枚举")
    }
}